package com.example.vue_serve.service;

import com.example.vue_serve.entity.TbGoods;
import com.example.vue_serve.entity.TbUser;
import com.example.vue_serve.entity.TbUserInfo;
import com.example.vue_serve.entity.TbWendu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbUserService {
    List<TbUser> findAll();

    String add(TbUser user);

    String updateUser(TbUser user);

    String delUser(int id);

    List<TbUser> queryByName(TbUser user);

    List<TbUser> queryLikeName(TbUser user);

    List<TbUser> queryByTiaojian(TbUser user);

    String login(TbUserInfo userInfo);

    List<TbUser> findAllFenye(int pageNum,int pageSize);

    List<TbWendu> findAllWendu();

    List<TbGoods> findAllGoodsByType(int type);
}
